package com.xh.core.util;

import com.aspose.words.FieldMergingArgs;
import com.aspose.words.IFieldMergingCallback;
import com.aspose.words.ImageFieldMergingArgs;

public class HandleMergeFieldInsert implements IFieldMergingCallback {
    @Override
    public void fieldMerging(FieldMergingArgs args) throws Exception {
        System.out.println("dddd");
        args.getDocument().getFirstSection().getBody().getFirstParagraph().getParagraphFormat().getStyle().getFont().setSize(16);
        System.out.println(args.getDocument().getFirstSection().getBody().getFirstParagraph().getText());
    }

    @Override
    public void imageFieldMerging(ImageFieldMergingArgs imageFieldMergingArgs) throws Exception {

    }
}
